<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加商品</title>
    <!-- 新 Bootstrap5 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
    <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
    <script src="https://cdn.staticfile.org/popper.js/2.9.3/umd/popper.min.js"></script>
    <!-- 最新的 Bootstrap5 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.min.js"></script>
</head>
<body>

<main class="form-signin w-100 m-auto" style="padding-left: 300px;padding-right: 300px;padding-top: 100px">
    <form action="${pageContext.request.contextPath}/commodity/addcommodity">

        <h1 style="width: 400px">输入信息</h1>
        <div class="form-floating">
            <input name="id" type="text" class="form-control" id="floatingid" placeholder="id">
            <label for="floatingid">id</label>
        </div>
        <div class="form-floating">
            <input name="name" type="text" class="form-control" id="floatingname" placeholder="name">
            <label for="floatingname">商品名称</label>
        </div>
        <div class="form-floating">
            <input name="type" type="text" class="form-control" id="floatingtype" placeholder="type">
            <label for="floatingtype">商品类型</label>
        </div>
        <div class="form-floating">
            <input name="price" type="text" class="form-control" id="floatingpri" placeholder="price">
            <label for="floatingpri">商品价格</label>
        </div>
        <div class="form-floating">
            <input name="inventory" type="text" class="form-control" id="floatinginv" placeholder="inventory">
            <label for="floatinginv">商品库存</label>
        </div>

        <button class="w-100 btn btn-lg btn-primary" type="submit">确认添加</button>
    </form>
</main>>
</body>
</html>
